<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;



Route::get('api/:version/smallappLogin/:code', 'api/:version.Auth/smallappLogin');
Route::get('api/:version/banner/:ids', 'api/:version.banner/index');
Route::get('api/:version/serachGoods', 'api/:version.goods/index');
Route::get('api/:version/cate', 'api/:version.category/index');
Route::get('api/:version/goodsDetail/:id', 'api/:version.goods/detail');
Route::get('api/:version/goodsComment/:id/:page', 'api/:version.goods/comment');
Route::post('api/:version/cart$', 'api/:version.cart/add');
Route::get('api/:version/cart', 'api/:version.cart/index');
Route::get('api/:version/recommendGoods', 'api/:version.goods/recommend');
Route::post('api/:version/confirmOrder', 'api/:version.order/confirm');
Route::post('api/:version/addOrder', 'api/:version.order/add');
Route::post('api/:version/address$', 'api/:version.address/edit');
Route::get('api/:version/address$', 'api/:version.address/index');
Route::get('api/:version/delAddress/:id$', 'api/:version.address/del');
Route::get('api/:version/userInfo', 'api/:version.user/index');
Route::get('api/:version/orderList', 'api/:version.order/index');
Route::get('api/:version/payOrder', 'api/:version.order/pay');
Route::rule('api/:version/weixinNotify', 'api/:version.notify/weixinOrder');
Route::rule('api/:version/openPromoter', 'api/:version.user/openPromoter');
Route::rule('api/setting', 'api/index/setting');
Route::get('api/:version/video', 'api/:version.video/index');
Route::get('api/:version/like', 'api/:version.video/like');
Route::post('api/:version/danmu', 'api/:version.video/addDanmu');
Route::post('api/:version/video', 'api/:version.video/createVideo');
Route::get('api/:version/videoDetail', 'api/:version.video/detail');
Route::get('api/:version/follow', 'api/:version.user/follow');
Route::get('api/:version/remindSendOrder', 'api/:version.order/remindSendOrder');
Route::get('api/:version/signOrder', 'api/:version.order/signOrder');
Route::get('api/:version/deleteOrder', 'api/:version.order/deleteOrder');
Route::get('api/:version/orderDetail', 'api/:version.order/orderDetail');
Route::post('api/:version/addOrderComment', 'api/:version.order/addOrderComment');
Route::get('api/:version/comment', 'api/:version.comment/index');
Route::get('api/:version/myGoods', 'api/:version.promoter/myGoods');
Route::post('api/uploadImg', 'api/common/upload');
Route::post('api/:version/saveShareGoods', 'api/:version.promoter/saveShareGoods');
Route::post('api/:version/createQrCode', 'api/:version.smallapp/createQrCode');
Route::get('api/:version/bindRecommendUser', 'api/:version.auth/bindRecommendUser');
Route::get('api/:version/promoterInfo', 'api/:version.promoter/info');
Route::get('api/:version/fans', 'api/:version.promoter/fans');
Route::get('api/:version/recommendOrder', 'api/:version.promoter/recommendOrder');
Route::post('api/:version/visitor', 'api/:version.visitor/enter');
Route::get('api/:version/visitor', 'api/:version.visitor/leave');
Route::get('api/:version/visitorList', 'api/:version.promoter/visitor');
Route::get('api/:version/commission', 'api/:version.funds/commission');
Route::get('api/:version/promoterDetail', 'api/:version.promoter/promoterDetail');
Route::get('api/:version/promoterGoods', 'api/:version.promoter/promoterGoods');
Route::post('api/:version/authUserInfo', 'api/:version.smallapp/authUserInfo');

Route::get('api/:version/shipping', 'api/:version.shipping/index');
Route::get('api/:version/addShareRecord', 'api/:version.promoter/addShareRecord');

//添加反馈
Route::post('api/:version/feedback', 'api/:version.feedback/addFeedback');
